<?php $this->load->view("_inc/header"); ?>
<script>
    $(document).ready(function(){
        $("#registro").validate();
    });
</script>
    <?=form_open('usuario/alterar', 'id="registro"');?>
    	<table>
    	<tr>
    		<td><label>Nome:</label></td>
    		<td><?=form_input('nome', $usuario->nome, 'class="required" minlength="10"');?></td>
    	</tr>
    	<tr>
    		<td><label>Email:</label></td>
    		<td><?=form_input('email', $usuario->email, 'class = "required email"');?></td>
    	</tr>
    	<tr>
    		<td><label>Senha:</label></td>
    		<td><?=form_password('senha', '', 'class="required" minlength="7"');?></td>
    	</tr>
    	<tr>
    		<td><label>Time do Coração:</label></td>
    		<td><?=form_dropdown('time', $times, $usuario->majoribol_times_id, 'class="required"');?></td>
    	</tr>
    	<tr><td><?=form_submit('', 'Alterar');?></td></tr>
    	</table>
	<?=form_close()?>
    <!--<div id="comentarios">-->
    <?php /*if(isset($comentarios['0']->titulo)){?>
        <?php $i = 0;?> 
        <?php foreach ($comentarios as $comentario){?>

            <div id="comentario" class="row<?=$i?>">
                <img src='<?=site_url()?>public/img/User.png'>
                <div id="corpo">
                        <h5><?=$comentario->nome?>  -  <?=$comentario->titulo?></h5>
                        <p><?=$comentario->comentario?></p>
                </div>	
            </div>
            <?php $i++?>
        <?php } ?>
    <?php }else{ ?>
    <h5>Você ainda não comentou sobre nenhum time!</h5>
    <?php } */?>